/**
 *  * 获取url中的参数，返回map键值对
 * @param url
 */
function getUrlParamMap(url) {
    var map = {}, paramUrl = url.substring(url.indexOf('?') + 1);
    if (paramUrl.length > 0) {
        $.each(paramUrl.split('&'), function (index, value) {
            var i = value.indexOf('=');
            if (i <= 0) return true;
            map[decodeURIComponent(value.substring(0, i))] = decodeURIComponent(value.substring(i + 1));
        });
    }
    return map;
}